package com.tgy.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/***
 * @ClassName: TicketServiceImpl
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 19:30 2021/12/26
 * @version : V1.0
 */

/*使用dubbo以后不要使用@service注解了，会导致混淆*/
@Service(version = "1.0.0") //将服务发布出去
@Component //放在容器中
public class TicketServiceImpl implements TicketService{
    @Override
    public String getTicket() {
        return "这是生产者";
    }
}
